package my.test.visitor.statisticalfunctions;

/**
 * @Author 许玉康
 * @Date 2019/10/8 9:46
 * 普通员工
 */
public class CommonEmployee extends Employee {

    //工作内容
    private String job;

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Override
    protected String getOtherInfo() {
        return "工作: " + this.job + "\t";
    }

    //允许访问者访问
    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }


    //
}
